#include <locale>
#include "options.hpp"
#include "server.h"
#include "logger.h"

#include "middle/chat.hpp"

/** @mainpage
 * @section intro はじめに
 * comet サーバ実装．
 */

int main(int argc, const char* argv[])
{
  // native locale (LANG=ja_JP.UTF-8) によるロケール設定
  std::locale::global(std::locale(""));

  night_sky::Options options(argc, argv);
  night_sky::Logger::setup("log4j.xml", "night-sky.main");

  return night_sky::DefaultServer(options.get("port", 8888),
                                  new middle::Chat()).start();
}

